<div class="container" style="margin:0 0 0 0;padding:0 0 0 0">
    <div class="row page-header-new" style="margin:0 0 0 0">
        <div class="page-title">
            <h4 >我的机会列表</h4>
        </div>
    </div>
    <div class="body">
        <div class="table-title">
            <div class="col-md-12 col-sm-12">
                <div class="col-md-3 col-sm-3">
                    <div class="btn-group">
                        <button class="{{showResponsible?'btn btn-default':'btn btn-info'}}" style="line-height: 1;width:115px" ng-click="getAllEOOpp()">我参与的</button>
                        <button class="{{showResponsible?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width:115px" ng-click="showResponse()">我负责的</button>
                    </div>
                </div>
                <div class="col-md-6 col-sm-6">
                    <input type="text" placeholder=" 搜索" style="border-radius: 5px;width: 80%;height: 28px">
                </div>
                <div class="col-md-3 col-sm-3" ng-init="showFinish=false">
                    <button class="{{showFinish?'btn btn-info':'btn btn-default'}}" style="line-height: 1;width:150px" ng-click="showFinish=!showFinish">包含我已完成的</button>
                </div>
            </div>
        </div>
        <div class="table-body">
            <table class="datatable table table-hover dataTale">
                <thead>
                <tr>
                    <th>#</th>
                    <th>负责人</th>
                    <th>客户名称</th>
                    <th>机会名称</th>
                    <th>机会代码</th>
                    <th>金额（万元）</th>
                    <th>日期</th>
                    <th>终止状态</th>
                    <th>进行状况</th>
                </tr>
                </thead>
                <tbody ng-repeat="item in items|orderBy:orderList:reverse" ng-dblclick="selectOne(item)" style="border-top: 1px solid #dddddd;">
                <tr>
                    <td>{{$index+1}}</td>
                    <td>{{item.ownerName}}</td>
                    <td>{{item.customName}}</td>
                    <td>{{item.name}}</td>
                    <td>{{item.code}}</td>
                    <td>{{item.amount}}</td>
                    <td>{{item.actualDate}}</td>
                    <td>{{getState(item.state)}}</td>
                    <td>{{getStatus(item.status)}}</td>
                </tr>
                </tbody>
            </table>
        </div>
        <div class="row">
            <div class="pull-left" style="margin-top:20px">
                &nbsp;&nbsp;&nbsp;&nbsp;总计机会数目 : {{dataNum}}
            </div>
            <div class="pull-right" style="margin-right: 20px">
                <nav>
                    <ul class="pagination">
                        <li>
                            <a ng-click="Previous()" role="button">
                                <span role="button">上一页</span>
                            </a>
                        </li>
                        <li ng-repeat="page in pageList" ng-class="{active: isActivePage(page)}" role="button">
                            <a ng-click="selectPage(page)" >{{ page }}</a>
                        </li>
                        <li>
                            <a ng-click="Next()" role="button">
                                <span role="button">下一页</span>
                            </a>
                        </li>
                    </ul>
                </nav>
            </div>
        </div>
    </div>
</div>